﻿using MyFloridaHouse.DataAccess;
using System;
using MyFloridaHouse.libSTO;

namespace MyFloridaHouse.libServiceBusinessRules
{
	/// <summary>
	/// AppLayers methods
	/// </summary>
    public static class AppLayers
    {
		/// <summary>
		/// Gets the layers.
		/// </summary>
		/// <returns>Object: <see cref="LayerSTO"/></returns>
        public static LayerSTO GetLayers()
        {
            var results = new LayerSTO();

			try
            {
                var dal = new DAL_CensusData();
                results.layerList = dal.GetLayers();
            }
            catch (Exception ex)
            {
                results.errorMessage = ex.Message;
            }
            return results;
		}

    }
}
